package com.sxmmall.search.service.impl;

import com.sxmmall.common.to.es.SkuEsModel;
import com.sxmmall.search.service.ProductService;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private RestHighLevelClient client;

    @Override
    public void productStatusUp(List<SkuEsModel> skuEsModels) {

        // 保存到es
        //1.给es中建立索引,建立映射关系
        //client.bulk()
    }
}
